/**
 * Free software.
 */

package org.nanhill.moo.service.impl;

import java.util.Collection;
import java.util.Collections;



import org.nanhill.commons.cache.AbstractMeantimeCache;

import org.nanhill.moo.domain.Category;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-11-2
 */
@SuppressWarnings("unchecked")
abstract class CategoryCache extends AbstractMeantimeCache {

	protected Collection<Category> cache = Collections.EMPTY_LIST;

	public Collection<Category> getCache() {
		return cache;
	}

	public boolean isEmpty() {
		return cache == null || cache.size() == 0;
	}

}